<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<link rel="stylesheet"
		href="/SICOCRE-WEBAPP/pages/css/tangerinet.css"
		type="text/css" />

	<title>Bienvenido al Sistema de Cobros y Crédito - Hazte Dueño<ui:insert
			name="title"></ui:insert>
	</title>
</h:head>
<h:body onload="document.loginForm.j_username.focus()">
	<div class="container" align="center">
		<div class="header">
			<div class="headerAppName" />
			<div class="logo">
				<img src="imgs/hbg_img.jpg" />
			</div>
			<div class="headerlogo" />
		</div>

		<p:spacer height="10px" />
		
		<center>
			<div class="loginBack"
				style="color: red; background: url(/SICOCRE-WEBAPP/pages/imgs/credito-hipotecario.jpg) repeat-x;">
				<c:if test="${not empty param.login_error}">
					<div class="login-error">
						Error de autenticación.<br />
						Usuario y/o password incorrectos.
					</div>
				</c:if>
				<p:panel styleClass="login-box">
					<form name="login-box"
						action="${request.contextPath}/app/j_spring_security_check"
						method="post">
						<table class="ctrl-holder">
							<tr>
								<td><label>Usuario: </label></td>
<!-- 								<td><input type="text" class="txtInputs" name="j_username" value="#{username}"/></td> -->
								<td><input type="text" class="txtInputs" name="j_username" /></td>
								
							</tr>
							<tr>
								<td><label>Password: </label></td>
								<td><input type="password" class="txtInputs" name="j_password" /></td>
							</tr>
							<tr>
								<td colspan="2"><input name="submit" type="submit"
									value="Entrar" class="blue-btn"/></td>

							</tr>
						</table>

						<p style="font-weight: bolder;">

							<c:if test="${not empty param.error}">
								<div class="login-error">Usuario y/o password incorrectos.<br />
									</div>
							</c:if>

						</p>

					</form>
				</p:panel>
			</div>
		</center>
		
		
		<div class="footerLogin">
			<div style="text-align: center; color: #0A3E7F; font-size: 12px;">
				<br />:: Tangerinet Derechos Reservados 2014 ::<br />
			</div>
		</div>
		
		

	</div>
</h:body>
</html>